package com.silences.servlet;

import com.silences.utils.UPloadUtil;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.rmi.ServerException;

//登录退出接口
@WebServlet("/upload")
public class UploadServlet extends HttpServlet {
    //extends 继承 HttpServlet类

    //get 请求

    //post 请求, 因为数据量可以很大
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServerException,IOException {
        UPloadUtil uu= new UPloadUtil();
        uu.upload(req,resp);

    }
}
